package com.clock.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.clock.common.annotation.Excel;
import com.clock.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * 评论对象 shop_comment
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
@Entity
public class ShopComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long commentId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Long shopId;

    /** 服务ID */
    @Excel(name = "服务ID")
    private Long serviceId;

    /** 回复评论的ID */
    @Excel(name = "回复评论的ID")
    private Long replyId;

    /** 评论级别，1-一级评论，2-二级评论 */
    @Excel(name = "评论级别，1-一级评论，2-二级评论")
    private Integer commentLevel;

    /** 评分，1-5 */
    @Excel(name = "评分，1-5")
    private Integer commentRate;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentContent;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentTime;

    /** 逻辑删除，1-已删除，0-未删除 */
    @Excel(name = "逻辑删除，1-已删除，0-未删除")
    private Integer isDeleted;

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setServiceId(Long serviceId) 
    {
        this.serviceId = serviceId;
    }

    public Long getServiceId() 
    {
        return serviceId;
    }
    public void setReplyId(Long replyId) 
    {
        this.replyId = replyId;
    }

    public Long getReplyId() 
    {
        return replyId;
    }
    public void setCommentLevel(Integer commentLevel) 
    {
        this.commentLevel = commentLevel;
    }

    public Integer getCommentLevel() 
    {
        return commentLevel;
    }
    public void setCommentRate(Integer commentRate) 
    {
        this.commentRate = commentRate;
    }

    public Integer getCommentRate() 
    {
        return commentRate;
    }
    public void setCommentContent(String commentContent) 
    {
        this.commentContent = commentContent;
    }

    public String getCommentContent() 
    {
        return commentContent;
    }
    public void setCommentTime(Date commentTime) 
    {
        this.commentTime = commentTime;
    }

    public Date getCommentTime() 
    {
        return commentTime;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("userId", getUserId())
            .append("orderId", getOrderId())
            .append("shopId", getShopId())
            .append("serviceId", getServiceId())
            .append("replyId", getReplyId())
            .append("commentLevel", getCommentLevel())
            .append("commentRate", getCommentRate())
            .append("commentContent", getCommentContent())
            .append("commentTime", getCommentTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
